package one.undefined.Core;

// пакеты JDA
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.JDABuilder;
import net.dv8tion.jda.api.OnlineStatus;
import net.dv8tion.jda.api.entities.Activity;

// локальные импорты
import one.undefined.Utils.Privates;
import one.undefined.Listeners.Interactions.*;
import one.undefined.Listeners.*;


public class MainClass {
    public static void main(String[] args) throws Exception {

        JDA api = JDABuilder.createDefault(Privates.token).build();
        api.getPresence().setActivity(Activity.listening("DiscordAPI"));
        api.getPresence().setStatus(OnlineStatus.IDLE);


        api.addEventListener(
                // Прочее
                new StatsCommand(),
                new GuildInfoCommand(),

                // Модерация
                new BanCommand(),
                new KickCommand(),
                new PurgeCommand(),

                // Эвенты
                new guildJoinEvent()
        );
    }
}

